package com.zhuangjie.shop.dto;

import com.zhuangjie.mvc.helper.GeoHelper.GeoCoordinates;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 商家入驻表单
 *
 * @author zhuangjie
 * @date 2023/09/26
 */
@Data
public class SettleInDTO extends GeoCoordinates {
    @NotBlank(message = "店铺名称不能为空")
    @ApiModelProperty(required = true, value = "店铺名称")
    private String name;
    @NotBlank(message = "店铺logo未上传")
    private String logo;
    @NotBlank(message = "店内海报照片不能为空")
    private String backgroundPoster;
    @NotBlank(message = "省未选择")
    private String provinceCode;
    @NotBlank(message = "省未选择")
    private String provinceName;
    @NotBlank(message = "市未选择")
    private String cityCode;
    @NotBlank(message = "市未选择")
    private String cityName;
    @NotBlank(message = "区未选择")
    private String districtName;
    @NotBlank(message = "区未选择")
    private String districtCode;
    @NotBlank(message = "详细信息为空")
    private String addressDescribe;

    @NotBlank(message = "手机号码不能为空")
    private String phone;
    @NotBlank(message = "手机验证码不能为空")
    private String phoneCode;

    @NotNull(message = "所属店铺分类不能为空")
    private Long shopCategoryId;

    /**
     * 店主身份证
     */
    @NotBlank(message = "未上传店主身份证")
    private String idCardImage;
    /**
     * 相关的食品许可证
     */
    @NotBlank(message = "未上传食品许可证")
    private String permitImage;
    /**
     * 营业执照
     */
    @NotBlank(message = "未上传营业执照")
    private String businessLicenseImage;

}